import { axios } from "../../utils/request";

const api = {
    getList: "/crm/shareConfig/getList",
    save: "/crm/shareConfig/save",
    delete: "/crm/shareConfig/delete"
};

/**
 * 列表
 */
export function getList(parameter) {
  return axios({
    url: api.getList,
    method: "get",
    params: parameter
  });
}

/**
 * 保存
 */
export function save(parameter) {
  return axios({
    url: api.save,
    method: "post",
    data: parameter
  });
}

/**
 * 删除
 */
export function deleteShare(parameter) {
  return axios({
    url: api.delete,
    method: "delete",
    params: parameter
  });
}